package cn.nn200433.swagger.entity;

import java.util.List;

/**
 * 端点
 *
 * @author song_jx
 * @date 2022-03-24 02:23:51
 */
public class Endpoint {

	/**
	 * 归属分组标签
	 */
	private List<String> tags;

	/**
	 * 接口说明
	 */
	private String summary;

	/**
	 * 请求方式
	 */
	private String httpMethod;

	/**
	 * 是否 get 请求
	 */
	private boolean isGet;

	/**
	 * 是否 put 请求
	 */
	private boolean isPut;

	/**
	 * 是否 post 请求
	 */
	private boolean isPost;

	/**
	 * 是否 delete 请求
	 */
	private boolean isDelete;

	/**
	 * 请求地址
	 */
	private String url;

	/**
	 * 描述
	 */
	private String description;

	/**
	 * 请求数据类型
	 */
	private List<String> produces;

	/**
	 * 请求参数
	 */
	private List<Parameter> parameters;

	/**
	 * 请求参数个数
	 */
	private int parameterSize;

	/**
	 * 返回参数
	 */
	private List<Parameter> responses;

	/**
	 * 返回参数个数
	 */
	private int responseSize;

	public List<String> getTags() {
		return tags;
	}

	public void setTags(List<String> tags) {
		this.tags = tags;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getHttpMethod() {
		return httpMethod;
	}

	public void setHttpMethod(String httpMethod) {
		this.httpMethod = httpMethod;
	}

	public boolean isGet() {
		return isGet;
	}

	public void setGet(boolean get) {
		isGet = get;
	}

	public boolean isPut() {
		return isPut;
	}

	public void setPut(boolean put) {
		isPut = put;
	}

	public boolean isPost() {
		return isPost;
	}

	public void setPost(boolean post) {
		isPost = post;
	}

	public boolean isDelete() {
		return isDelete;
	}

	public void setDelete(boolean delete) {
		isDelete = delete;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<String> getProduces() {
		return produces;
	}

	public void setProduces(List<String> produces) {
		this.produces = produces;
	}

	public int getParameterSize() {
		return parameterSize;
	}

	public void setParameterSize(int parameterSize) {
		this.parameterSize = parameterSize;
	}

	public List<Parameter> getParameters() {
		return parameters;
	}

	public void setParameters(List<Parameter> parameters) {
		this.parameters = parameters;
	}

	public List<Parameter> getResponses() {
		return responses;
	}

	public void setResponses(List<Parameter> responses) {
		this.responses = responses;
	}

	public int getResponseSize() {
		return responseSize;
	}

	public void setResponseSize(int responseSize) {
		this.responseSize = responseSize;
	}

}